package com.tyk.bookstore.front.payment.model.result;

import com.tyk.bookstore.front.common.core.model.result.ResultEnum;

/**
 * @author tyk
 * @description PaymentResultEnum
 */
public enum PaymentResultEnum implements ResultEnum {

    WAY_NOT_SUPPORT(4_07_01_01, "支付方式不支持"),
    PAY_FAILED(4_07_01_02, "支付失败");

    private final Integer code;
    private final String msg;

    PaymentResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
